<?php

class Human{
    public $name="我";
    protected $height;

    public static $sValue="Static Value in Human";
    public function eat($food){
        echo $this->name . "'s eating ". $food. "\n";
    }
}

class Me extends Human
{
    public $team="lsl";
    private $age="23";

    public static $president="zzy";

    public static function changePresident($newPrsdt){
        static::$president = $newPrsdt;
        echo parent::$sValue . "<br />";
    }

    //静态变量和方法操作
    private static $a="abc";

    public static function abc(){
        echo "<br />".self::$a;
        self::$a.="def";
    }
}

echo Me::$president. "<br />"; //输出该标签变量
Me::changePresident("iii"); //输出原类的静态标签变量
echo Me::$president. "<br />"; //输出改变后的静态标签变量


Me::abc();
Me::abc();




?>